const app = getApp()
Page({
  data: {
    num: app.userInfoList.length,
    subDesc: '抽奖基于蚂蚁链智能共识算法随机抽取3名用户'
  },
  /**
   * onLottery 抽奖
   */
  onLottery() {
    my.showLoading();
    app.onLottery().then((res)=>{
      app.awardList = res;
      my.hideLoading();
      my.navigateTo({
        url: '/pages/award/award'
      });
    })
  }
});
